package com.shop.cloud.domain.system;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shop.cloud.common.mybatis.BaseEntity;

import lombok.EqualsAndHashCode;
import lombok.ToString;

@ToString(callSuper = true)
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class SysLog extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 日志生成时间
	 */
    private Date createDate;
	/**
	 * 浏览器类型
	 */
    private String browser;
	/**
	 * 操作编码
	 */
    private String operationCode;
	/**
	 * 
	 */
    private String os;
	/**
	 * 执行时间
	 */
    private Integer executeTime;
	/**
	 * 详细描述
	 */
    private String description;
	/**
	 * IP地址
	 */
    private String ip;
	/**
	 * 请求参数
	 */
    private String requestParam;
	/**
	 * 操作用户名称
	 */
    private String creater;
	/**
	 * 日志类型: 1：安全日志 2：表示操作日志
	 */
    private Integer type;
	/**
	 * 物理地址
	 */
    private String mac;
    
    public SysLog(){}
    
    public Date getCreateDate() {
        return this.createDate;
    }
    
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
    public String getBrowser() {
        return this.browser;
    }
    
    public void setBrowser(String browser) {
        this.browser = browser;
    }
    public String getOperationCode() {
        return this.operationCode;
    }
    
    public void setOperationCode(String operationCode) {
        this.operationCode = operationCode;
    }
    public String getOs() {
        return this.os;
    }
    
    public void setOs(String os) {
        this.os = os;
    }
    public Integer getExecuteTime() {
        return this.executeTime;
    }
    
    public void setExecuteTime(Integer executeTime) {
        this.executeTime = executeTime;
    }
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    public String getIp() {
        return this.ip;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getRequestParam() {
        return this.requestParam;
    }
    
    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }
    public String getCreater() {
        return this.creater;
    }
    
    public void setCreater(String creater) {
        this.creater = creater;
    }
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    public String getMac() {
        return this.mac;
    }
    
    public void setMac(String mac) {
        this.mac = mac;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}